<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 
        1、变量没赋初始值

        2、函数没有返回值
    -->
    <script>
        var a;
        console.log(a);

        function x() {
            var y = 'hello';
        }
        var b = x();
        console.log(b);
    </script>
</body>

</html>